export namespace="KubeMQ-system"
export app_name="kubemq-crds"
export repo="kubemq-charts"
export helm="$repo/nats"
export url="https://kubemq-io.github.io/charts"
export source="gitee"

# helm repo remove $repo
helm repo add $repo $url
helm repo update $repo

# helm search repo nats --devel --versions

# helm upgrade --create-namespace --install \
# -n $namespace $app_name $helm \
# -f ./nats/values.yaml \
# --version 0.19.5
# --set global.ha.enabled=true # 高可用

$ helm install --create-namespace -n kubemq kubemq-crds kubemq-charts/kubemq-crds
$ helm install --wait -n kubemq kubemq-controller kubemq-charts/kubemq-controller
$ helm install --wait -n kubemq kubemq-cluster --set key={your-license-key} kubemq-charts/kubemq-cluster

# docker run -d -p 8080:8080 -p 50000:50000 -p 9090:9090 kubemq/kubemq-community:latest
